<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
		<table class="table table-bordered table-hover definewidth m10">
			 <thead>
			    <tr>
			        <th><strong>编号</strong></th>
					<th><strong>标的名称</strong></th>
					<th><strong>标的类型</strong></th>
					<th><strong>金额</strong></th>
					<th><strong>年利率</strong></th>
					<th><strong>标的期限</strong></th>
					<th><strong>起始时间</strong></th>
					<th><strong>还款日</strong></th>
					<th><strong>投资人数</strong></th>
					<th><strong>投资进度</strong></th>
					<th><strong>浏览次数</strong></th>
					<th><strong>还款方式</strong></th>
			    </tr>
			   </thead>
			    <?php foreach($borrow_list as $key=>$borrow){?>
			  <tr>
				<td><?php echo $borrow['id'];?></td>
				<td><a href="/sys_admin/borrow/borrow_view/<?php echo $borrow['id'];?>"><?php echo $borrow['title'];?></a></td>
				<td><?php echo $borrow_type[$borrow['ftype']];?></td>
				<td><?php echo number_format($borrow['account'],2);?></td>
				<td><?php echo $borrow['apr'];?>%</td>
				<td><?php echo date('Y-m-d H:i',$borrow['bill_starttime']);?>——<?php echo date('Y-m-d H:i',$borrow['bill_endtime']);?></td>
				<td><?php if($borrow['auto_verify_time'] > 0){echo date('Y-m-d H:i',$borrow['auto_verify_time']);}?></td>
				<td><?php echo $borrow_status[$borrow['fstatus']];?></td>
				<td><?php echo $borrow_status[$borrow['fstatus']];?></td>
				<td id="chebiao_<?php echo $borrow['id'];?>" >
					<?php if($borrow['fstatus'] == 0){?>
					<a href="/sys_admin/borrow/verify_view/<?php echo $borrow['id'];?>" target="_bank">审核</a>
					<a href="/sys_admin/borrow/edit_view/<?php echo $borrow['id'];?>" target="_bank">修改</a> 
					
					<?php }?>
					<?php if($borrow['fstatus'] == 1 && $borrow['account']==$borrow['account_yes']){?>
					<a href="/sys_admin/borrow/review_view/<?php echo $borrow['id'];?>" target="_bank">复审</a>
					<?php }?>
					<?php if($borrow['fstatus'] < 1){?>
					<a href="javascript:if(confirm('你确定撤回？')){withdraw(<?php echo $borrow['id'];?>);}">撤回</a>
					<?php }?>
					
				</td>
			  </tr>
			  <?php }?>
			  	<tr>
			  	<td colspan="14"  class="page"><?php echo $this->pagination->create_links();?></td>
			  	</tr>
		</table>
</div>

<div id="dialog" title="系统提示" style="display:none;">
	<div id="msg" style="text-align:center;color:red">&nbsp;</div>
</div>

